<!DOCTYPE html>
<html lang="en">
    <head>
        <STYLE type="text/css">
            BODY { background: url('<?php echo base_url(); ?>library/blueloginbox/images/bg.jpg'); }
        </STYLE>
        <link href="<?php echo base_url(); ?>library/dropdownmenu/new.css" media="screen" rel="stylesheet" type="text/css" />
        <meta charset="utf-8" />

    </head>
    <body>
        <?php
        require_once('header_admin.php');
        ?>
        <div style='height:20px;'></div>
        <div style="font-family: 'Oxygen Mono', Tahoma, Arial, sans-serif; font-size: 12px;">
<!--            <i>Image Ideal (Preview) = 200px X 100px, Aspek Ratio 2:1</i> <br />
            <i>Image Ideal (Slide) = 800px X 400px, Aspek Ratio 2:1</i> <br />            -->
            
            <?php            
            $page= "admin/kegiatan_detil";

            echo form_open("setting/foto_itenary_tambah/".$id);
            echo "<h3>".anchor("setting/tour", 'Kembali')."</h3><br/><br/>";
            echo '<input type="submit" value="Tambahkan Foto Baru" />';            
            echo form_close();

            if (isset($error)) echo "<b>".$error."</b><br/>";
            if (isset($success)) echo "<b>".$success."</b><br/>";

            echo "<br/><br/>";
            
            global $g_base_url_foto;
            foreach($listFoto as $row) {                                
                echo anchor("setting/foto_itenary_info/edit/".$row->id_itenary, 'EDIT INFO', "target='_blank'"    );                
                echo " | ".anchor("setting/foto_itenary_hapus/".$row->id_itenary."/".$row->id_itenary, 'HAPUS DATA')."<br/>";                
                              
                echo "<img src='".  $g_base_url_foto."/".$row->path_foto."' width='200px'/>";
                
                
                echo form_open_multipart('setting/foto_itenary_upload/'.$row->id_tour."/".$row->id_itenary);                
                echo '<input type="file" name="userfile" size="20" />';
                echo '<input type="submit" value="Upload Ulang Foto" />';
                echo form_close();
                
                echo "<br/><br/>";
            }
            ?>

        </div>
        <!-- Beginning footer -->
        <div></div>
        <!-- End of Footer -->
    </body>
</html>